{{define "9IPHP/categories.html"}}
<!DOCTYPE html>
<html>
<head>
    {{template "head/head" .}}
    {{template "head/3rdstatistic" .}}
</head>
<body>
{{template "9IPHP/header" .}}
<div id="pjax" class="fn__flex-1">
{{if .pjax}}{{noescape "<!---- pjax {#pjax} start ---->"}}{{end}}
<div class="main wrapper fn__clear">
    <div class="content page">
        <h1 class="page__title">
            <span id="categoriesCount">0</span> <span class="ft__fade ft__13">{{.I18n.Categories2}}</span>
        </h1>
        {{if eq (len .Categories) 0}}
        <div class="ft__center">
            {{.I18n.NoData}}
        </div>
        {{end}}
            {{range .Categories}}
            <div class="page__item">
                <div class="page__description">
                    <a href="{{.URL}}">
                   {{.Title}}
                    </a>
                    <div class="ft__gray ft__13">{{.Description}}</div>
                </div>
                <div class="fn__clear">
                    {{range .Tags}}
                    <a href="{{.URL}}" class="tag">{{.Title}}</a>
                    {{end}}
                </div>
            </div>
            {{end}}
    </div>
    {{template "9IPHP/side" .}}
</div>
{{if .pjax}}{{noescape "<!---- pjax {#pjax} end ---->"}}{{end}}
</div>

{{template "9IPHP/footer" .}}
{{if .pjax}}{{noescape "<!---- pjax {#pjax} start ---->"}}{{end}}
<script>
  increase({{len .Categories}}, 1000, 'categoriesCount', 0)
</script>
{{if .pjax}}{{noescape "<!---- pjax {#pjax} end ---->"}}{{end}}
</body>
</html>
{{end}}